<?php

namespace Common\Model;

use Think\Model;

class TaskOilpriceModel extends Model {


    /**
     * 获得列表（带基本查询）
     */
    public function getOilList($pageNo = 1, $pageSize = 15, $where = array(), $order = array(), $field = "*") {
        $rt = $this
                ->field($field)
                ->where($where)
                ->page("$pageNo,$pageSize")
                ->order($order)
                ->select();

        return $rt;
    }

    public function getOilListLength($where = array()) {
        return $this->where($where)->count();
    }

}
